package net.sunniwell.weather;

/**
 * @param Data
 *            = 天气数据
 * @param msg
 *            = 状态
 * 
 * @author PC
 *
 */

public class WeatherBean {

	private int code;
	private DataBean data;
	private String msg;
	private RcBean rc;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public DataBean getData() {
		return data;
	}

	public void setData(DataBean data) {
		this.data = data;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public RcBean getRc() {
		return rc;
	}

	public void setRc(RcBean rc) {
		this.rc = rc;
	}

	@Override
	public String toString() {
		return "WeatherBean [code=" + code + ", data=" + data + ", msg=" + msg + ", rc=" + rc + "]";
	}

	/**
	 * @param City
	 *            = 位置信息
	 * @param Condition
	 *            = 天气信息
	 * 
	 * @author PC
	 *
	 */
	public static class DataBean {

		private CityBean city;
		private ConditionBean condition;

		public CityBean getCity() {
			return city;
		}

		public void setCity(CityBean city) {
			this.city = city;
		}

		public ConditionBean getCondition() {
			return condition;
		}

		public void setCondition(ConditionBean condition) {
			this.condition = condition;
		}

		@Override
		public String toString() {
			return "Data [city=" + city + ", condition=" + condition + "]";
		}

		/**
		 * @param cityId
		 *            = 城市代码
		 * @param counname
		 *            = 国家名称
		 * @param name
		 *            = 城市名称
		 * @param pname
		 *            = 省名称
		 * @param timezone
		 *            = 时区
		 * 
		 * @author PC
		 *
		 */
		public static class CityBean {

			private int cityId;
			private String counname;
			private String name;
			private String pname;
			private String timezone;

			public int getCityId() {
				return cityId;
			}

			public void setCityId(int cityId) {
				this.cityId = cityId;
			}

			public String getCounname() {
				return counname;
			}

			public void setCounname(String counname) {
				this.counname = counname;
			}

			public String getName() {
				return name;
			}

			public void setName(String name) {
				this.name = name;
			}

			public String getPname() {
				return pname;
			}

			public void setPname(String pname) {
				this.pname = pname;
			}

			public String getTimezone() {
				return timezone;
			}

			public void setTimezone(String timezone) {
				this.timezone = timezone;
			}

			@Override
			public String toString() {
				return "City [cityId=" + cityId + ", counname=" + counname + ", name=" + name + ", pname=" + pname + ", timezone=" + timezone + "]";
			}

		}

		/**
		 * @param condition
		 *            = 天气情况
		 * @param humidity
		 *            = 湿度
		 * @param temp
		 *            = 温度
		 * @param updatetime
		 *            = 更新时间
		 * @param windDir
		 *            = 风向
		 * @param windLevel
		 *            = 风级
		 * 
		 * @author PC
		 *
		 */
		public static class ConditionBean {

			private String condition;
			private String humidity;
			private String icon;
			private String temp;
			private String updatetime;
			private String windDir;
			private String windLevel;

			public String getCondition() {
				return condition;
			}

			public void setCondition(String condition) {
				this.condition = condition;
			}

			public String getHumidity() {
				return humidity;
			}

			public void setHumidity(String humidity) {
				this.humidity = humidity;
			}

			public String getIcon() {
				return icon;
			}

			public void setIcon(String icon) {
				this.icon = icon;
			}

			public String getTemp() {
				return temp;
			}

			public void setTemp(String temp) {
				this.temp = temp;
			}

			public String getUpdatetime() {
				return updatetime;
			}

			public void setUpdatetime(String updatetime) {
				this.updatetime = updatetime;
			}

			public String getWindDir() {
				return windDir;
			}

			public void setWindDir(String windDir) {
				this.windDir = windDir;
			}

			public String getWindLevel() {
				return windLevel;
			}

			public void setWindLevel(String windLevel) {
				this.windLevel = windLevel;
			}

			@Override
			public String toString() {
				return "Condition [condition=" + condition + ", humidity=" + humidity + ", icon=" + icon + ", temp=" + temp + ", updatetime=" + updatetime + ", windDir=" + windDir + ", windLevel=" + windLevel + "]";
			}
		}
	}

	public static class RcBean {

		private int c;
		private String p;

		public int getC() {
			return c;
		}

		public void setC(int c) {
			this.c = c;
		}

		public String getP() {
			return p;
		}

		public void setP(String p) {
			this.p = p;
		}
	}
}
